package com.winshare.saleAssistant.domain.dto.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel
public class ArticleModuleUpdateDTO {

    @NotNull(message = "主键不可以为空")
    @Range(min = 1, message = "主键为大于或等于1的正整数")
    @ApiModelProperty(value = "主键不可以为空")
    private Integer id;

    @NotBlank(message = "栏目名称不可以为空")
    @Length(min = 1, max = 100, message = "栏目名称长度需要在1-100个字之间")
    @ApiModelProperty(value = "栏目名称")
    private String articleModuleName;

    @NotBlank(message = "栏目描述不可以为空")
    @Length(min = 1, max = 140, message = "栏目描述长度需要在1-140个字之间")
    @ApiModelProperty(value = "栏目描述")
    private String articleModuleDesc;

    public ArticleModuleUpdateDTO() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getArticleModuleName() {
        return articleModuleName;
    }

    public void setArticleModuleName(String articleModuleName) {
        this.articleModuleName = articleModuleName;
    }

    public String getArticleModuleDesc() {
        return articleModuleDesc;
    }

    public void setArticleModuleDesc(String articleModuleDesc) {
        this.articleModuleDesc = articleModuleDesc;
    }
}
